<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>逃生路径</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <!-- CSS -->
  <link rel="stylesheet" href="__LAYUI__/css/layui.css" media="all">
  <link rel="stylesheet" href="__STATIC__/plugs/font-awesome/css/font-awesome.min.css" media="all">

  <!-- Js -->
  <script type="text/javascript" src="__LAYUI__/layui.js"></script>
  <script type="text/javascript" src="http://webapi.amap.com/maps?v=1.4.2&key=b32b75e11b6769096d4222213f95de96"></script>
  <script src="//webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script>
  
 <style>
	.amap-logo,.amap-copyright{
		display: none!important;
	}
	.layui-input{
		height:30px;
		background:rgba(0,0,0,0.6);
		border-width:0px;
		color:#fff;
	}
	.btn-green{
		background:rgb(82,214,105);
	}
	input::-webkit-input-placeholder{
		color:rgba(255,255,255,0.6);
	}
	#add_path{
		display:none;
	}
  </style>
</head>
<body>
		<div id="map" class="map" style="height:323px" data-url="{:url('index/ajax.map/aerialPhotoLayers')}">
			<input type=hidden id="center" value="{$enterprise.latitudeLongitude}"/>
		</div>
		<div class="layui-btn layui-btn-small add-path" style="z-index:10;position:absolute;bottom:15px;right:20px;background:rgba(0,0,0,0.4);">
			<i class="fa fa-pencil" style="font-size:14px!important"></i>
		</div>
		<form class="layui-form" action="{:url('basic/enterprise/route',array('enterpriseId'=>$enterprise.id))}" method="post" id="add_path" style="position:absolute;top:20px;left:10px;">
		 	<input type="hidden" name="enterpriseId" value="{$enterprise.id}">
            <input type="hidden" name="routeValue" value="">
			<div class="layui-form-item">
               <div class="layui-input-inline">
                	<input class="layui-input" name="routeName" data-set="routeName" type="text" placeholder="路径名称" autocomplete="off" lay-verify="required"/>
               </div>
               <div class="layui-input-inline">
               		<button class="layui-btn btn-green layui-btn-small" id="save" lay-submit lay-filter="save">
               			<i class="fa fa-send"></i>
               		</button>
               </div>
            </div>
           
		</form>
</body>
<script type="text/javascript">
	var routes = {$routes};
</script>
<script type="text/javascript" src="__JS__/common/map_tool.js"></script>
<script type="text/javascript" src="__JS__/basic/route.js"></script> 
</html>